package com.yuanli.cosmeticmirror.view.adapter;

import android.view.View;

import androidx.appcompat.widget.AppCompatCheckBox;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yuanli.cosmeticmirror.R;
import com.yuanli.cosmeticmirror.bean.MemberBean;

/**
 * 我的照片适配器
 */
public class MemberAdapter extends BaseQuickAdapter<MemberBean, BaseViewHolder> {
    public MemberAdapter() {
        super(R.layout.items_member);
    }

    @Override
    protected void convert(BaseViewHolder helper, MemberBean item) {
        helper.setText(R.id.member_money, item.getPrice());
        helper.setText(R.id.member_time, item.getMark());
        AppCompatCheckBox memberCb = helper.getView(R.id.member_cb);
        memberCb.setChecked(item.isCheck());
    }
}
